package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.VariationTypeDao;
import com.ericom.model.VariationType;
@Repository("variationTypeDao")
public class VariationTypeDaoHibernate extends GenericDaoHibernate<VariationType, Long>
		implements VariationTypeDao {

	public VariationTypeDaoHibernate() {
		super(VariationType.class);
		
	}

	public List<VariationType> findByName(String name) {
		
		return this.getHibernateTemplate().find("from VariationType where name=?",name);
	}

}
